<template>
  <div id="data">
    {{ data }}
  </div>
</template>
<!-- <script src="https://unpkg.com/axios/dist/axios.min.js"></script> -->
<script lang="ts">
import { onBeforeMount } from "vue";
//  ----------------------------导入axios文件
import axios from "@/utils/http";
export default {
  name: "RouterTest",
  components: {},
  setup() {
    const data: any = ["空"];

    onBeforeMount(() => {
      //----------------------真实接口
      axios({
        url: "/medicine/process/findOrderByBillId",
        method: "get",
        params: {
          currentPage: 0,
          pageSize: 2,
          bill_id: 2,
        },
      })
        .then((res: any) => {
          console.log("默认表格数", res.data.data);
          // state.billData = res.data.data;
          // state.billTotal = res.data.count;
        })
        .catch((err) => {
          console.log(err);
        });
      //--------------------文档假接口 自动嵌入http://8.130.64.9/
    });
    return {
      data,
    };
  },
};
</script>
<style></style>
